<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns:ng="http://angularjs.org" id="ng-app" ng-app="ubang">
<head>
    <!--[if lte IE 8]>
    <script>
        document.createElement('ng-include');
        document.createElement('ng-pluralize');
        document.createElement('ng-view');

        // Optionally these for CSS
        document.createElement('ng:include');
        document.createElement('ng:pluralize');
        document.createElement('ng:view');
    </script>
    <![endif]-->
    <title></title>
    <meta charset="utf-8">
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <!-- 响应式设计 -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/res/plugin/jquery-ui-1.10.3.custom/css/smoothness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet">
    <link href="/res/plugin/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="/res/plugin/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="../res/css/main.css" rel="stylesheet">

    <link href="/res/plugin/uploadify/uploadify.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/res/plugin/jquery/jquery-1.10.1.js"></script>
    <script type="text/javascript" src="/res/plugin/uploadify/swfobject.js"></script>
    <script type="text/javascript" src="/res/plugin/uploadify/jquery.uploadify.v2.1.0.js"></script>
    <script src="/res/plugin/bootstrap/js/bootstrap.js"></script>
    <script src="/res/plugin/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script src="/res/plugin/angular/angular.min.js"></script>
    <script src="/res/plugin/json2.js"></script>
    <script src="/res/plugin/underscore/underscore-min.js"></script>
</head>
<body ng-controller="AllDocCrt">
<div id="u_c_main" class="u_c_main">
    <div class="u_title_bar">
        <span id="device_info" class="u_title">实验室课件资料管理</span>
    </div>
    <div class="u_c_header ">
        <div class="u_c_m_h">
            <div class="pull-left">
                    <label><img src="/images/add.gif"/> {{type}}文件夹：</label>
                    <input type="hidden"  ng-model="formParams.id" value=""/>
                    <input type="hidden"  ng-model="formParams.pid" value=""/>
                    <input type="hidden"  ng-model="formParams.fileType" value=""/>
                    <input type="hidden"  ng-model="formParams.fileSuffix" value=""/>
                    <input type="text"  ng-model="formParams.fileName" placeholder="文件夹名称" style="width:200px; height:18px;">&nbsp;&nbsp;&nbsp;&nbsp;
                    <input style="width: 80px;" class="btn u_c_btn" type="button" ng-click="saveFolder()" value="{{type}}"/>
            </div>
        </div>
    </div>
    <table class="table table-striped table-bordered table-condensed dataListTable">
        <thead>
        <tr>
            <th>[<a href="javascript:void(0)" ng-click="show();">根目录</a>] 目录结构：</th>
            <th style="width: 350px;">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in items">
            <td><img src="{{item.icon}}"/> <a href="javascript:void(0)" ng-click="open(item);" title="{{item.tips}}">{{item.name}}</a></td>
            <td>
                <a ng-show="item.showMsg" href="javascript:void(0);" ng-click="showDiv(item)"><i class="icon-heart"></i> 通知 </a>
                <a href="javascript:void(0);" ng-click="edit(item)"><i class="icon-edit"></i> 改名 </a>
                <a href="javascript:void(0);" ng-click="del(item)"><i class="icon-remove"></i> 删除 </a>
            </td>
        </tr>
        <tr class="text-center" ng-show="!items.length">
            <td colspan="2"> 目录为空 </td>
        </tr>
        </tbody>
    </table>
    <table>
        <tr>
            <td><label><img src="/images/save.gif"/> 上传课件：</label></td>
            <td><label><input type="file" name="uploadify" id="uploadify"/></label>&nbsp;&nbsp;</td>
            <td><div id="fileQueue"></div></td>
        </tr>
    </table>
</div>
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h5 id="myModalLabel">下载通知</h5>
    </div>
    <div class="modal-body">
           <div style="width: 520px; height: 50px; text-align: left;" id="content">下载地址：<a href="{{msg.url}}" target="_blank" title="{{msg.fileName}}">{{msg.fileName}}</a></div>
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
        <button class="btn btn-primary" ng-click="sendMsg()">发送</button>
    </div>
</div>
<script src="../../res/js/common.js"></script>
<script src="../res/js/i_common.js"></script>
<script src="list.js"></script>
<script>
    $(function(){
        $('#myModal').modal({
            backdrop:false,
            keyboard:true,
            show:false
        });
    });
</script>
</body>
</html>